@extends('admin.layouts.wap')
@section('title', '修改小程序搜索状态')

@section('content')

<div class="row">
    <div class="col-md-12">
        <form id="comment-form" method="POST" action="{{ URL::current() }}">
            <div class="card">
                <div class="card-body">
                    <div class="m-form-item">
                        <label>小程序APPID：</label>
                        <div class="m-col-3">
                            <input type="text" class="m-input" name="appid" id="appid" value="{{ $minapp->appid }}" disabled="disabled">
                        </div>
                        @csrf
                    </div>
                    <div class="m-form-item">
                        <label>小程序显示状态：</label>
                        <div class="badge-lists">
                            <ul id="wxa_search_ul">
                                <li data="0" @if($searchStatus['status'] == 0) class="active" @endif>可被搜索</li>
                                <li data="1" @if($searchStatus['status'] == 1) class="active" @endif>不可搜索</li>
                            </ul>
                            <input type="hidden" id="status" name="status" value="1">
                        </div>
                    </div>
                    <div class="m-form-item">
                        <button class="m-form-btn" type="submit">立即修改</button>
                    </div>
                    <div class="m-info-item">
                        <label>温馨提示：</label>
                        <div class="text">
                            <ul>
                                <li>建议上架后自己关闭小程序搜索,避免被人恶意投诉影响小程序使用!</li>
                                <li>关联公众号时必须开启,否则无法被搜索到!</li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>
<script type="text/javascript" src="/assets/admin/js/public/miniapp.setting.min.js?v=2023071002"></script>
@endsection
